export const mainPage = {
  name: 'Main',
  path: '/',
  component: () => import('@/pages/list/latest/LatestListPage.vue'),
  meta: {
    auth: 'guest',
  }
} as const;

export const favoritePage = {
  name: 'Favorite',
  path: '/query/favorite',
  component: () => import('@/pages/list/favorite/FavoriteListPage.vue'),
  meta: {
    auth: 'user',
  }
} as const;

export const keywordPage = {
  name: 'KeywordSearch',
  path: '/query/:type/keyword',
  component: () => import('@/pages/list/keyword/KeywordListPage.vue'),
  meta: {
    auth: 'guest',
  }
} as const;

export const tagPage = {
  name: 'Tag',
  path: '/query/tag',
  component: () => import('@/pages/list/tag/TaggedListPage.vue'),
  meta: {
    auth: 'guest',
  }
} as const;

const listRoutes = [
  mainPage,
  favoritePage,
  keywordPage,
  tagPage,
]

export default listRoutes;
